﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PropertyManagement.Core.Model {
    public enum HouseType {
        Single=1,
        OneRoomOneHall,
        TwoRoomOneHall,
        ThreeRoomOneHall,
        ThreeRoomTwoHall
    }

    public static class HouseTypeHelper {
        public static string GetHouseTypeName(this HouseType houseType) {
            switch (houseType) {
                case HouseType.Single:
                    return "单间";
                case HouseType.OneRoomOneHall:
                    return "一室一厅";
                case HouseType.TwoRoomOneHall:
                    return "两室一厅";
                case HouseType.ThreeRoomOneHall:
                    return "三室一厅";
                case HouseType.ThreeRoomTwoHall:
                    return "三室两厅";
                default:
                    return "";
            }
        }
    }
}
